package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.BusinessMenu;
import com.example.automanagement.mapper.BusinessMenuMapper;
import com.example.automanagement.service.BusinessMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessMenuServiceImpl implements BusinessMenuService {
    @Autowired
    private BusinessMenuMapper businessMenuMapper;
    @Override
    public List<BusinessMenu> getBusinessMenu() {
        return businessMenuMapper.getBusinessMenu();
    }

    @Override
    public void addBusinessMenu(BusinessMenu businessMenu) {
        businessMenuMapper.addBusinessMenu(businessMenu);
    }

    @Override
    public void updateBusinessMenu(BusinessMenu businessMenu) {
        businessMenuMapper.updateBusinessMenu(businessMenu);
    }

    @Override
    public void deleteBusinessMenu(int businessId) {
        businessMenuMapper.deleteBusinessMenu(businessId);
    }
}
